package com.vitech.javacertification.generics;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

public class GenericClass <V, I, T>{
	
	
	
	public static void main(String ...s){
		
		GenericClass<Integer, String, String> myGen = new GenericClass<Integer, String, String>(5);
		
		myGen.add(4, "xxx");
		
	}
	
	
	
	
	
	
	
	private V field1;
	private I[] field2;
	private HashMap <V, T> field3;
	
	public GenericClass (V v){
		
		this.field1 = v; 
		field3 = new HashMap();
	}
	
	public void add(V key, T value){
		field3.put(key, value);
	}

	
}
